<%@page import="java.util.Date"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="/WEB-INF/pages/admin/public/meta.jsp"></jsp:include>
<title>我的桌面</title>
</head>
<body>

<div class="page-container">
	<p class="f-20 text-success">欢迎使用信达后台管理系统<span class="f-14">v1.0</span>！</p>
	<p>  上次登录IP：${lastLogin.lastLoginIP}  </p>
	<p>上次登录时间：<fmt:formatDate value="${lastLogin.lastLoginTime}" pattern="yyyy/MM/dd HH:mm:ss"/>  </p>
	<table class="table table-border table-bordered table-bg">
		<thead>
			<tr>
				<th colspan="7" scope="col">信息统计</th>
			</tr>
			<tr class="text-c">
				<th>统计</th>
				<th>订单</th>
				<th>产品</th>
				<th>服务商</th>
				<th>用户</th>
				<th>管理员</th>
			</tr>
		</thead>
		<tbody>
			<tr class="text-c">
				<td>总数</td>
				<td>${countNum.orderNum}</td>
				<td>${countNum.productNum}</td>
				<td>${countNum.providerNum}</td>
				<td>${countNum.memberNum}</td>
				<td>${countNum.adminNum}</td>
			</tr>
			<tr class="text-c">
				<td>今日</td>
				<td>${countNumToday.orderNum}</td>
				<td>${countNumToday.productNum}</td>
				<td>${countNumToday.providerNum}</td>
				<td>${countNumToday.memberNum}</td>
				<td>${countNumToday.adminNum}</td>
			</tr>
			<tr class="text-c">
				<td>昨日</td>
				<td>${countNumYesterday.orderNum}</td>
				<td>${countNumYesterday.productNum}</td>
				<td>${countNumYesterday.providerNum}</td>
				<td>${countNumYesterday.memberNum}</td>
				<td>${countNumYesterday.adminNum}</td>
			</tr>
			<tr class="text-c">
				<td>本周</td>
				<td>${countNumWeek.orderNum}</td>
				<td>${countNumWeek.productNum}</td>
				<td>${countNumWeek.providerNum}</td>
				<td>${countNumWeek.memberNum}</td>
				<td>${countNumWeek.adminNum}</td>
			</tr>
			<tr class="text-c">
				<td>本月</td>
				<td>${countNumMonth.orderNum}</td>
				<td>${countNumMonth.productNum}</td>
				<td>${countNumMonth.providerNum}</td>
				<td>${countNumMonth.memberNum}</td>
				<td>${countNumMonth.adminNum}</td>
			</tr>
		</tbody>
	</table>
	<table class="table table-border table-bordered table-bg mt-20">
		<thead>
			<tr>
				<th colspan="2" scope="col">服务器信息</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<th width="30%">服务器计算机名</th>
				<td><span id="lbServerName"><%=	request.getServerName() %></span></td>
			</tr>
			<tr>
				<td>服务器IP地址</td>
				<td><%=request.getLocalAddr() %></td>
			</tr>
			<tr>
				<td>服务器版本 </td>
				<td><%=getServletContext().getServerInfo() %></td>
			</tr>

			<tr>
				<td>服务器操作系统 </td>
				<td>${osName }</td>
			</tr>
		</tbody>
	</table>
</div>

<script type="text/javascript" src="admin/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="admin/static/h-ui/js/H-ui.min.js"></script> 

</body>
</html>